package com.zzc.qqchat.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserInforRep extends JpaRepository<UserInfor,Integer> {

    @Query(value = "select * from user  where user_Id=?1",nativeQuery = true)
    UserInfor findByuserId(int userId);
}
